From e507119e1737312ac00f2d2df9c3b161b2f60812 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 5 Oct 2011 19:41:34 +1100 Subject: [PATCH] move PM notification to template --- templates/index.html | 6 +++--- templates/page.html | 2 +- templates/thread.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/index.html b/templates/index.html index c0196e93..37577ff9 100644 --- a/templates/index.html +++ b/templates/index.html @@ -25,9 +25,9 @@ } {% endraw %}{% endif %} - + {{ boardlist.top }} - {% if pm %}
{{ pm }}

{% endif %} + {% if pm %}
You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

{% endif %} {% if config.url_banner %}{% endif %}

{{ board.url }} - {{ board.name }}

{% if board.title %}{{ board.title }}{% endif %}

{% if mod %}Return to dashboard{% endif %}

@@ -161,4 +161,4 @@

All trademarks, copyrights, comments, and images on this page are owned by or are the responsibility of their respective parties.

- \ No newline at end of file + diff --git a/templates/page.html b/templates/page.html index f246757b..5186dd6d 100644 --- a/templates/page.html +++ b/templates/page.html @@ -10,7 +10,7 @@ - {% if pm %}
{{ pm }}

{% endif %} + {% if pm %}
You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

{% endif %}

{{ title }}

{% if subtitle %}{{subtitle}}{% endif %}

{% if mod %}Return to dashboard{% endif %}

{{ body }} diff --git a/templates/thread.html b/templates/thread.html index 265b6063..909325f8 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -27,7 +27,7 @@ {{ boardlist.top }} - {% if pm %}
{{ pm }}

{% endif %} + {% if pm %}
You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

{% endif %} {% if config.url_banner %}{% endif %}

{{ board.url }} - {{ board.name }}

{% if board.title %}{{ board.title }}{% endif %}

{% if mod %}Return to dashboard{% endif %}